package com.yami.shop.bean.enums;

/**
 * 用户状态
 *
 * @author ruoyi
 */
public enum SceneType
{
    AddByOrder("0", "下单"),//下单成交
    AddByGive("1", "空投"),//空投持仓
    ReduceByMarket("2", "划转"),//商城转出
    AddByMarket("3", "提现"),//商城转入
    AddByTransfer("4", "转赠"),//转增添加
    ReduceByTransfer("5", "转赠减少"),//转增减少
    ReduceByExchange("6", "兑换减少"),//兑换减少
    AddByCompound("7", "合成"),//合成增加
    ReduceByCompound("8", "合成减少"),//合成减少
    Consign("9", "寄售减少"),//寄售
    ConsignCancel("10", "寄售取消"),//寄售取消
    ConsignBuy("11", "寄售"),//寄售买入
    OPEN_HOLD("12", "盲盒"),//开启盲盒
    RedFreeze("17", "红包冻结"),//红包冻结
    RedAdd("18", "红包"),//红包增加
    RedTransfer("19", "红包减少"),//红包减少
    OrderZERO("20", "免费领取"),//
    ShareAdd("21", "分享领取"),//
    ShareReduce("22", "分享减少"),//
    ShareFreeze("23", "分享冻结"),//
    ShareUnFreeze("24", "分享解冻"),//
    AddByMallOrder("25", "商城购买"),//商城订单
    ;

    private final String code;
    private final String info;

    SceneType(String code, String info)
    {
        this.code = code;
        this.info = info;
    }
    public static String getPaymentType(String value) {
        for (SceneType paymentTypeEnum : SceneType.values()) {
            if (paymentTypeEnum.getCode().equals(value)) {
                return paymentTypeEnum.getInfo();
            }
        }
        return null;
    }
    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }
}
